package whu.edu.assignment4.service;

import whu.edu.assignment4.dataobject.Product;
import whu.edu.assignment4.dataobject.User;
import whu.edu.assignment4.dataobject.UserProduct;

import java.util.List;

public interface ProductService {
    Product findProductById(int pid);
    List<Product> findAll();
    int buyProducts(UserProduct userProduct);
    int addProduct(Product product);
    int deleteProduct(int pid);
    int updateProduct(Product product);
}
